#include <iostream>
#include <stdio.h>

int main() {
#if defined(__clang__)
    std::cout << "Compiled by Clang, version "
              << __clang_major__ << "." << __clang_minor__ << "." << __clang_patchlevel__ << std::endl;
#elif defined(__GNUC__)
    std::cout << "Compiled by GCC, version "
              << __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__ << '\n';
#elif defined(_MSC_VER)
    std::cout << "Compiled by MSVC, version "
              << _MSC_VER << '\n';
#else
    std::cout << "Unknown compiler" << '\n';
#endif
    return 0;
}
